{include file="public/header" /}
<style>
    .layui-form-select .layui-input{
        border: none !important;
    }
    .upd-phone-list{
        background-color: #fff
    }
    .upd-phone-list input{
        height: inherit !important;
    }
</style>
<body>
<div class="header">
    <i class="layui-icon layui-icon-left"></i> 添加收货地址
</div>
<form action="{:url('address/save')}" method="post" class="form layui-form">
    <ul class="upd-phone-list">
        <li>
            <p>收货人</p>
            <input type="text" name="nickname" placeholder="请填写收货人" lay-verify="required"
                   lay-reqtext="请填写收货人" lay-verType="tips" autocomplete="off">
        </li>
        <li>
            <p>手机号码</p>
            <input type="number" name="tel" placeholder="请填写联系电话" lay-verify="required"
                   lay-reqtext="请填写联系电话" lay-verType="tips" autocomplete="off">
        </li>
        <li>
            <p>所在地区</p>
            <div class="site-prov sunSelect" data-url="{:url('address/getArea')}" data-value="code"
                 data-name="title">
                <select name="province" data-name="选择省" data-level="1" data-id=""
                        lay-verify="required"
                        lay-reqtext="请选择省" lay-verType="tips" lay-filter="sunSelect"></select>
                <select name="city" data-name="选择市" data-level="2" data-id="" lay-verify="required"
                        lay-reqtext="请选择市" lay-verType="tips" lay-filter="sunSelect"></select>
                <select name="district" data-name="选择区/县" data-level="3" data-id=""
                        lay-verify="required"
                        lay-reqtext="请选择区/县" lay-verType="tips" lay-filter="sunSelect"></select>
            </div>
        </li>
        <li>
            <p>详细地址</p>
            <input name="details" lay-verify="required"
                      lay-reqtext="请填写详细地址" lay-verType="tips"
                      placeholder="请填写详细地址" autocomplete="off"/>
        </li>
    </ul>

    <div class="address-default">设置为默认地址
        <input type="checkbox" name="default" lay-skin="switch" value="1">
    </div>

    <p class="save save-fixed upd-save" lay-submit lay-filter="save" formObj=".form">保存</p>
</form>
</body>
{include file="public/footer"/}
<script src="/static/admin/builder/js/sunSelect.js"></script>
</html>